import Vue from 'vue'
import VueRouter from 'vue-router'
import login from '../views/login.vue'
Vue.use(VueRouter)

const routes = [
  {path: '/',redirect: '/login' },
  { path: '/login',name: 'login',  component: login, meta: {title: '登录页'}},
  { path: '/',name: 'home',  component: ()=>import('../views/home.vue'), meta: {title: '主页'},
    children: [
      {path: '/review', component: () => import('../views/review.vue'), meta: {title: '多评合一',keepAlive:true}},

      { path: '/welcome',name: 'welcome',  component: ()=>import('../views/welcome.vue'), meta: {title: '工作台',keepAlive:true}},
      {path: '/certificateChart', component: () => import('../views/certificateChart.vue'), meta: {title: '多证合一>数据分析页',keepAlive:true}},
      {path: '/certificateVideo', component: () => import('../views/certificateVideo.vue'), meta: {title: '多证合一>视频监控',keepAlive:true}},
      {path: '/certificateShowCase', component: () => import('../views/certificateShowCase.vue'), meta: {title: '多证合一>案件公示',keepAlive:true}},
      {path: '/certificateFoodSafe', component: () => import('../views/certificateFoodSafe.vue'), meta: {title: '多证合一>食品药品安全',keepAlive:true}},
      {path: '/order', component: () => import('../views/order.vue'), meta: {title: '多规合一',keepAlive:true}},
      {path: '/judgeFourEvent', component: () => import('../views/judgeFourEvent.vue'), meta: {title: '多审合一>四办清单管理',keepAlive:true}},
      {path: '/judgeService', component: () => import('../views/judgeService.vue'), meta: {title: '多审合一>集成事项管理',keepAlive:true}},
      {path: '/reviewProject', component: () => import('../views/reviewProject.vue'), meta: {title: '多审合一>成果展示',keepAlive:true}},
      {path: '/reviewGuide', component: () => import('../views/reviewGuide.vue'), meta: {title: '多审合一>服务指南',keepAlive:true}},

      {path: '/evaluateProject', component: () => import('../views/evaluateProject.vue'), meta: {title: '多评合一>成果展示',keepAlive:true}},

      {path: '/checkGuide', component: () => import('../views/checkGuide.vue'), meta: {title: '服务指南',keepAlive:true}},
      {path: '/checkProject', component: () => import('../views/checkProject.vue'), meta: {title: '项目成果',keepAlive:true}},
      {path: '/eventChart', component: () => import('../views/eventChart.vue'), meta: {title: '多管合一>数据分析页',keepAlive:true}},
      {path: '/eventLaw', component: () => import('../views/eventLaw.vue'), meta: {title: '多管合一>执法事项清单',keepAlive:true}},
      /*{path: '/eventRight', component: () => import('../views/eventRight.vue'), meta: {title: '多管合一>权责事项清单',keepAlive:true}},*/
      {path: '/eventLawEnforce', component: () => import('../views/eventLawEnforce.vue'), meta: {title: '多管合一>综合执法局权责事项',keepAlive:true}},
      {path: '/eventMarketSupervise', component: () => import('../views/eventMarketSupervise.vue'), meta: {title: '多管合一>市场监管局权责事项',keepAlive:true}},
      {path: '/eventMatter', component: () => import('../views/eventMatter.vue'), meta: {title: '多管合一>办理事项清单',keepAlive:true}},
      {path: '/setLaw', component: () => import('../views/setLaw.vue'), meta: {title: '系统管理>政策法规',keepAlive:true}},
      {path: '/setBigEvent', component: () => import('../views/setBigEvent.vue'), meta: {title: '系统管理>大事记管理',keepAlive:true}}
      ]
  }
]
const router = new VueRouter({
  routes
})
export default router
